using System;

namespace CustomORM.Extensions
{
    public static class DbConversionsHelper
    {
        public static object GetDBNullableValue(object value)
        {
            return value ?? DBNull.Value;
        }

        public static object GetNullableValueFromDbValue(object value)
        {
            if (value is DBNull)
            {
                return null;
            }
            return value;
        }
    }
}